package principal;

import espace_physique.*;
import java.awt.event.*;
import java.io.*;

public class ControleurFermerApplication extends WindowAdapter implements ActionListener{
    
    
    public ControleurFermerApplication() {
    

    }

    public void actionPerformed(ActionEvent e) {
        
        this.fermer();
    }
    
    public void windowClosing(WindowEvent e) {
        
        this.fermer();
        
    }
    
    public void fermer(){
        
       /* ObjectOutputStream fos=null;
         try {
                fos = new ObjectOutputStream(new FileOutputStream("picasial.data"));
                fos.writeObject(this.gestionnaire);
            } catch (Exception ex) {
                ex.printStackTrace();
            }*/
          System.exit(0);  
        
    }
}
